package com.bestcem.xm.wallet.grpc.client.converter.strategy;

import org.apache.commons.lang3.math.NumberUtils;

/**
 * bool类型自定义转换器
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/4/1 6:48
 */
public interface BooleanStrategy {

    default Boolean integerToBoolean(Integer value){
        return NumberUtils.INTEGER_ZERO.equals(value);
    }

}
